-
Notifications
You must be signed in to change notification settings - Fork 127
Reduce the overhead of unconfigured loggers #351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
On Windows, the
|
What's the reasoning behind the lazy initialization of |
Less memory and processor overhead (see the above benchmarks). An application will create many loggers, but few (usually only the root logger) has attached appenders. Lazy initialization reduces memory alloc's by avoiding allocating Throughput is improved because |
On Ubuntu (gcc 11), the
|
…nised change to m_priv
AppenderAttachableImpl::appendLoopOnAppenders does not need to lock a mutex for any Logger in the path to the root Logger which has no appenders attached (This partly addressed #347).